from datetime import datetime
import calendar

if __name__ == '__main__':
    now = datetime.now()
    print(int(now.timestamp() // 1))
    now_string = datetime(2022, 4, 16, 11, 21)
    print(now_string)
    dt = datetime.fromtimestamp(int(now.timestamp() // 1))
    print(dt)
    day = datetime.strftime(dt, '%Y-%m-%d %H:%M:%S')
    print(now_string.year, now_string.month)
    month = calendar.month(2024, 4)
    print(month)
